package OOday01;

public class Teacher1 extends Person1 {


    double salray;
    Teacher1(){
    }
    Teacher1(String name,int age,String address,double salray){
        this.name=name;
        this.age=age;
        this.address=address;
        this.salray=salray;

    }
    void teach(){
        System.out.println(name+"正在讲课...");
    }

}
